package com.moetube.search.listener;

import com.moetube.search.service.ESManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/*@Component*/
public class VideoUpListener {

    @Autowired
    private ESManagerService esManagerService;

   /* @RabbitListener(queues = "")*/
    public void receiveMessage(String videoId){
        System.out.println("videoId:"+videoId);

        esManagerService.importDataByVideoId(videoId);
    }
}
